const setupPermissionDirective = (app) => {
  app.directive('perm', {
    mounted(el, binding) {
      const { value } = binding
      if (value.includes(1)) {
        el.hidden = true
      }
    }
  })
}

export { setupPermissionDirective }
